﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Fetion.Core
{
    public class PBObject
    {
        public static byte FROM_CLIENT = 1;
        public static byte FROM_SERVER = 2;

        public Object syncRoot;
        //private  HashSet<Short> seqSet;
        public short currentSeq = 0;

        public int cmd;
        public int userId;
        public byte format;
        public byte from = FROM_CLIENT;
        public bool isEncrypted = false;// 默认不加密
        public String clientType;
        public String clientVersion;
        //private ProtoEntity entity;
        public byte[] option;
        public int packageSize;
        public byte[] body;

        public void Save(BufferWriter writer)
        {
            throw new NotImplementedException();
        }

        public void Load(BufferReader reader)
        {
            throw new NotImplementedException();
        }
    }
}
